import Mock from 'mockjs'
import homeApi from './mockServerData/home'
import userApi from './mockServerData/user'
import permissionApi from './mockServerData/permission'

// 接收一个回调函数homeApi
Mock.mock(/api\/home\/getTableData/, 'get', homeApi.getTableData)
Mock.mock(/api\/home\/getCountData/, 'get', homeApi.getCountData)
Mock.mock(/api\/home\/getChartData/, 'get', homeApi.getChartData)
Mock.mock(/api\/user\/getUserList/,"get", userApi.getUserList)
Mock.mock(/api\/user\/addUser/,"post", userApi.createUser)
Mock.mock(/api\/user\/editUser/, "post",userApi.updateUser)
Mock.mock(/api\/user\/deleteUser/, "post", userApi.deleteUser)
Mock.mock(/api\/permission\/getMenu/, 'post', permissionApi.getMenu)